package com.ruoyi.system.service.impl.smy;

import com.ruoyi.common.core.domain.smy.DistributionSetting;
import com.ruoyi.system.mapper.smy.DistributionSettingMapper;
import com.ruoyi.system.service.smy.IDistributionSettingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DistributionSettingServiceImpl implements IDistributionSettingService {
	@Resource
	private DistributionSettingMapper distributionSettingMapper;

	@Override
	public DistributionSetting selectDistributionSettingById(Long id) {
		return distributionSettingMapper.selectDistributionSettingById(id);
	}

	@Override
	public List<DistributionSetting> selectDistributionSettingList(DistributionSetting distributionSetting) {
		return distributionSettingMapper.selectDistributionSettingList(distributionSetting);
	}

	@Override
	public int insertDistributionSetting(DistributionSetting distributionSetting) {
		return distributionSettingMapper.insertDistributionSetting(distributionSetting);
	}

	@Override
	public int updateDistributionSetting(DistributionSetting distributionSetting) {
		return distributionSettingMapper.updateDistributionSetting(distributionSetting);
	}

	@Override
	public int deleteDistributionSettingByIds(Long[] ids) {
		return distributionSettingMapper.deleteDistributionSettingByIds(ids);
	}

	@Override
	public int deleteDistributionSettingById(Long id) {
		return distributionSettingMapper.deleteDistributionSettingById(id);
	}

	@Override
	public DistributionSetting getLastSetting() {
		return distributionSettingMapper.getLastSetting();
	}
}
